home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
COMPILER
/
SATHER
/
!Sather
/
!Help
< prev
next >
Wrap
Text File
|
1997-06-19
|
3KB
|
102 lines
Sather 1.1 Compiler Risc OS version
Compiler and Boehm garbage collector ported from Unix version by
Peter Naulls 1997
Front-End by Peter Naulls 1997
pnaulls@wave.co.nz
This help file does not document either the Sather compiler
or the Sather language. For more information see:
- The !Sather.Docs directory.
- The RISC OS Sather homepage: http://www.cs.waikato.ac.nz/~pnaulls/sather/
- The Sather homepage: http://www.icsi.berkeley.edu/~sather/
You will require the following:
- A C compiler
Almost certainly GCC, Acorn's C compiler may not work with Sather.
This is configured in !Sather.System.Common.CONFIG
- UnixLib
Version 3.7b, older versions will break under StrongARM.
- A Make utility
The default is amu, but others are likely to work.
Also configured in CONFIG.
- Lots of memory
Hello World requires 9Mb to compile in with seperate compilation
(-only_C). The Compiler will also support Virtualise by putting
the heap in dynamic areas if you do:
Set cs_heap ""
This is done automatically for you if you select "Use Dynamic areas"
from the front end.
Front End
Drag a Sather program (.sa) or module (.sam or .module) to the File
writable icon. (This will be shift-drag if, like me, you use
a module which lets you insert the contents of text files in writable
icons).
The Main Class icon adds the -main flag to the command line.
I suggest you use the Only C option, as amu/gcc will take memory
_on top_ of the Sather compiler - there may be an option at a later
date to run this afterwards. For now, you will want to run amu
separately.
Other options should be obvious - if not, then email me and tell me so :)
Risc OS notes:
- Filenames can be specified as either filename.sa sa.filename or filename/sa
- The extension for module files is /sam or /module.
- Make sure you specifiy the full path for input files eg.
cs /temp/sa.hw -o hw -main HELLO_WORLD
not
cs sa.hw -o hw -main HELLO_WORLD
(Slight bug I will fix)
- The compiler only understands Unix filenames at present, not Risc OS
ones (apart from the sa. exception mentioned above)
Bugs:
A few bugs are still known to exist. In particular, the internal
name mangler is known to crash on occasion. Secondly, the
'o' directory and runtime.c will not be created or copied respectively
if the current directory is not where the C source files are created.
Any others; please, please, report to me.
Thanks to:
Keith Hopper, John Newman, James Shiell
and those on the comp.lang.sather newsgroup.